package file;

import java.io.File;

public class FileDemo {
    public static void main(String[] args) {
        File file = new File("./demo.txt");
        String name = file.getName();
        System.out.println(name);
        long length = file.length();
        System.out.println(length);
        boolean cr = file.canRead();
        boolean cw = file.canWrite();
        System.out.println(cr);
        System.out.println(cw);
        boolean hidden = file.isHidden();
        System.out.println(hidden);
    }
}
